package com.motong.gongdan.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.motong.gongdan.entity.FormTable;

import com.motong.gongdan.vo.system.Erp.vo.PushOrderNumVo;
import com.motong.gongdan.vo.system.otherVo.RelatedSalesInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author lsw
 * @time 2022/5/23 16:31
 */
public interface FormTableMapper extends BaseMapper<FormTable> {

    IPage<FormTable> getList(Page<FormTable> salesOrderPage, @Param(Constants.WRAPPER) Wrapper<FormTable> code);

    List<RelatedSalesInfoVo> getSalesInfoByWorkOrderCodes(@Param("workOrderCodes") Set<String> workOrderCodes);

    PushOrderNumVo getErpSalesInfo(@Param("code") String code);
}
